/* 表格容器 */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* 操作栏 */
.action-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    flex: 1;
    max-width: 300px;
    margin-right: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #43cea2;
    outline: none;
    box-shadow: 0 0 10px rgba(67, 206, 162, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #43cea2, #185a9d);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 206, 162, 0.3);
}

.btn-primary i {
    font-size: 16px;
}

/* 数据卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 数据卡片 */
.data-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e1e1e1;
    position: relative;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(67, 206, 162, 0.2);
    border-color: #43cea2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #185a9d;
    margin: 0;
}

.card-subtitle {
    color: #666;
    font-size: 0.9em;
}

.card-content {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.info-label {
    width: 80px;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-edit {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.btn-delete {
    background-color: #fbe9e7;
    color: #d32f2f;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background-color: #fbe9e7;
    color: #d32f2f;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    border-radius: 6px;
    background: white;
    color: #185a9d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.active {
    background: #43cea2;
    color: white;
}

.pagination a:hover:not(.active) {
    background: #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .action-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        max-width: 100%;
        margin-right: 0;
    }
}